use criterion::{criterion_group, criterion_main, Criterion};
use hash_string::hash_string::{string_hash, string_nocase_hash};

fn bench_string_hash(c: &mut Criterion) {
    c.bench_function("hash_string_string_hash", |b| {
        b.iter(|| string_hash("Hello, World!"))
    });
}

fn bench_string_nocase_hash(c: &mut Criterion) {
    c.bench_function("hash_string_string_nocase_hash", |b| {
        b.iter(|| string_nocase_hash("Hello, World!"))
    });
}

criterion_group!(benches, bench_string_hash, bench_string_nocase_hash);
criterion_main!(benches);